home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / T / ThinkC 4.0.2 Update.cpt / TCL Update / TCL Update Diffs / CEditText.c.Diff < prev    next >
Encoding:
Text File  |  1990-03-30  |  2.1 KB  |  58 lines  |  [TEXT/MPS ]

  1. File #1: Roy G. Biv:C TCL patch ƒ:new files:CEditText.c
  2. File #2: Roy G. Biv:C TCL patch ƒ:old files:CEditText.c
  3.  
  4. Extra lines in 1st before 23 in 2nd (File "Roy G. Biv:C TCL patch ƒ:new files:CEditText.c"; Line 23; File "Roy G. Biv:C TCL patch ƒ:old files:CEditText.c"; Line Δ23)
  5.   23    extern CBureaucrat  *gGopher;   /* Altered by TCL Weaver version 1.0 (2/21/90) */
  6.  
  7.  
  8. Extra lines in 1st before 260 in 2nd (File "Roy G. Biv:C TCL patch ƒ:new files:CEditText.c"; Line 261:267; File "Roy G. Biv:C TCL patch ƒ:old files:CEditText.c"; Line Δ260)
  9.  261        /* Altered by TCL Weaver version 1.0 (2/21/90) */
  10.  262        
  11.  263        if (gEditText != this) {
  12.  264            if (gEditText != NULL)            /* (3/30/90) */
  13.  265                gEditText->Deactivate();
  14.  266            Activate();
  15.  267            gGopher = this;
  16.  268        }
  17.  
  18.  
  19. Nonmatching lines (File "Roy G. Biv:C TCL patch ƒ:new files:CEditText.c"; Line 283:312; File "Roy G. Biv:C TCL patch ƒ:old files:CEditText.c"; Line 275:278)
  20.  284        /* Altered by TCL Weaver version 1.0 (2/21/90) */
  21.  285        
  22.  286        Point   thePosition;
  23.  287        long    theHExtent, theVExtent;
  24.  288        
  25.  289        switch (keyCode) {
  26.  290        
  27.  291            case KeyHome:
  28.  292            case KeyPageUp:
  29.  293            case KeyPageDown:
  30.  294                 inherited::DoKeyDown(theChar, keyCode, macEvent);
  31.  295                 break;
  32.  296                 
  33.  297            case KeyEnd:
  34.  298                if (itsScrollPane != NULL) {
  35.  299                    GetExtent(&theHExtent, &theVExtent);
  36.  300                    thePosition.h = 0;
  37.  301                    thePosition.v = Max(0, theVExtent - itsScrollPane->vSpan);
  38.  302                    ScrollTo(thePosition, TRUE);
  39.  303                    itsScrollPane->Calibrate();
  40.  304                }
  41.  305                break;
  42.  306                
  43.  307            default: 
  44.  308                Prepare();
  45.  309                TEKey(theChar, macTE);
  46.  310                AdjustBounds();
  47.  311                ScrollToSelection();
  48.  312                break;
  49.  313        }
  50.  
  51.  275        Prepare();
  52.  276        TEKey(theChar, macTE);
  53.  277        AdjustBounds();
  54.  278        ScrollToSelection();
  55.  
  56.  
  57. *** EOF on both files at the same time ***
  58.